Plotting a 3d function in python